export const SetLoading = (password) => {
  if (!process.browser) return;
  window.localStorage.setItem('loading', password);
};

export const UnsetLoading = () => {
  if (!process.browser) return;
  window.localStorage.removeItem('loading');
};

export const GetLoading = () => {
  if (!process.browser) return;
  let AutoVue_loading = false;
  let AutoVue_password = '';
  if (typeof window.localStorage.loading !== 'undefined') {
    AutoVue_loading = true;
    AutoVue_password = window.localStorage.loading;
  }
  return {
    AutoVue_loading,
    AutoVue_password,
  };
};
